﻿<%@ Page Language="C#" MasterPageFile="~/Site_SignPage.Master" AutoEventWireup="true"
    CodeBehind="SingleTableList.aspx.cs" Inherits="ERPWebDemos.Forms.SingleTable.SingleTableList"
    Title="单表模板列表" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc2" %>
<%@ Register Assembly="RuleCode.WebControls" Namespace="RuleCode.WebControls" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head_in" runat="server">
    <script type="text/javascript">
        var tableName = "User";
        var defValue = "";
    </script>
  
    <script src="/Javascript/jquery.rulecode.js" type="text/javascript"></script>
    <script src="/Javascript/SingleTableEdit.js" type="text/javascript"></script>
    <script src="/Javascript/SingleTableList.js" type="text/javascript"></script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_in" runat="server">
    <div class="block">
        <div class="block_title">
            过滤条件设置
        </div>
        <div class="block_content">
            <cc1:RuleQueryTable ID="RuleQueryTable1" runat="server" 
                onbuttonclick="RuleQueryTable1_ButtonClick" />
        </div>
    </div>
    <div class="block">
        <div class="block_title">
            数据
        </div>
        <div class="block_content">
            <asp:GridView ID="MainGridView" Width="100%" DataKeyNames="RECID" runat="server"
                AutoGenerateColumns="False" CssClass="datagrid_data" BackColor="White" 
                BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                ForeColor="Black" GridLines="Vertical">
                <FooterStyle BackColor="#CCCC99" />
                <RowStyle BackColor="#F7F7DE" />
                <Columns>
                    <asp:BoundField DataField="UserID" HeaderText="UserID" SortExpression="UserID" />
                    <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
                    <asp:TemplateField HeaderText="更新" HeaderStyle-Width="100px" ItemStyle-HorizontalAlign="Left"
                        ItemStyle-Width="100px">
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="修改" class="OperatorAnchor editData">
                                            修改</a>
                                    </td>
                                    <td>
                                        <a href="#" recid='<%#Eval("RECID").ToString() %>' title="删除" class="OperatorAnchor deleteData">
                                            删除</a>
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                        <HeaderStyle Width="100px" HorizontalAlign="Left"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Left" Width="100px"></ItemStyle>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <EmptyDataTemplate>
                    对不起，没有找到符合您要求的数据
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView>
            <div class="datagrid_foot">
                <a href="#" class="addData" title="增加新记录">增加新记录</a>
            </div>
            <div id="datagrid_WebPager" class="datagrid_WebPager">
                <cc2:WebPager ID="WebPager1" runat="server" ControlToPaginate="MainGridView" 
                    onpageindexchanged="WebPager1_PageIndexChanged" />
            </div>
        </div>
    </div>
    <div id="UserMenu" style="position: absolute; display: none; top: 0px; left: 0px; width: 130px;
        margin: 0px;  border: 1px solid #cccccc; background-color: #CEE2FF;">
        <ul  class="MenuUl">   
            <li  class="MenuItem" id="GotoMainTable" >查看主表</li>
            <li class="MenuItem" id="EditRecord">编辑</li>
            <li class="MenuItem" id="DeleteRecord">删除</li>                           
        </ul>
    </div> 
    <br />
</asp:Content>
